package org.rsbot.event.impl;

import java.awt.Graphics;
import org.rsbot.bot.Bot;
import org.rsbot.client.Client;
import org.rsbot.event.listeners.TextPaintListener;
import org.rsbot.util.StringUtil;

public class TMenu
  implements TextPaintListener
{
  private Client client;

  public TMenu(Bot paramBot)
  {
    this.client = paramBot.getClient();
  }

  public int drawLine(Graphics paramGraphics, int paramInt) {
    StringUtil.drawLine(paramGraphics, paramInt++, new StringBuilder().append("Menu ").append(this.client.isMenuOpen() ? "Open" : "Closed").append(" & ").append(this.client.isMenuCollapsed() ? "Collapsed" : "Expanded").toString());

    StringUtil.drawLine(paramGraphics, paramInt++, new StringBuilder().append("Menu Location: (").append(this.client.getMenuX()).append(",").append(this.client.getMenuY()).append(")").toString());

    StringUtil.drawLine(paramGraphics, paramInt++, new StringBuilder().append("Sub-Menu Location: (").append(this.client.getSubMenuX()).append(",").append(this.client.getSubMenuY()).append(")").toString());

    StringUtil.drawLine(paramGraphics, paramInt++, new StringBuilder().append("Sub-Menu Width: ").append(this.client.getSubMenuWidth()).toString());
    return paramInt;
  }
}